﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
/**********************************************************************************************************************************************
 Copyright © 2010 - Banco Itaú BBA S.A

 DownloadBox :

 Histórico de Alterações:
 26/10/2012 - Murilo Figueiredo             - Criação - Geração do Relatório de Garantias PGR3 em Arquivo Excel na Camada de Negócio - OS277681

**********************************************************************************************************************************************/

namespace ibba.src.norisk.Controls
{
    public partial class DownloadBox : ChildWindow
    {
        public DownloadBox()
        {
            InitializeComponent();
            this.Style = (Style)this.Resources["DownloadBoxStyle"];
        }

        public void Show(string title, string message, string footer, Uri downloadUri)
        {
            this.Title = title;
            this.txtMessage.Text = message;
            this.txtFooter.Text = footer;
            this.btnYes.NavigateUri = downloadUri;

            this.Show();
        }

        private void btnNo_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = false;
        }

        private void btnYes_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = false;
        }
    }
}

